package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingLevelDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    /**
     * 条件分页查询
     */

    Page<NursingLevel> pageLevel(String name, Integer status);

/**
 * 查询所有护理等级信息
 * */
    List<NursingLevel> listAll();
/**
 * 新增护理等级
 * */
    void insert(NursingLevel nursingLevel);
/**
 * 更新护理等级
 * */
void update(NursingLevelDto nursingLevelDto);
/**
 * 删除
 * */
@Delete("delete from nursing_level where id=#{id}")
    void delete(Long id);
/**u
 * 根据ID查询
 * */
@Select("select * from nursing_level where id=#{id}")
    NursingLevel findById(Long id);


}
